<!DOCTYPE html>
<html>

<head>
      <title>后台管理系统 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link href="__SKIN__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <script src="__SKIN__/js/jquery.js"></script>
      <script src="__SKIN__/js/jquery.form.js"></script>
      <script src="__SKIN__/js/jmzhfsform.js"></script>
      <link href="__SKIN__/font-awesome/css/font-awesome.min.css" rel="stylesheet">
      <!-- Latest compiled and minified CSS -->
      <link rel="stylesheet" href="__SKIN__/bootstrap-table/bootstrap-table.min.css">
      <!-- Latest compiled and minified JavaScript -->
      <script src="__SKIN__/bootstrap-table/bootstrap-table.min.js"></script>
      <!-- Latest compiled and minified Locales -->
      <script src="__SKIN__/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
      <link href="__SKIN__/css/admin.css?v=1" rel="stylesheet">

</head>

<body class="gray">



      <div class="formpanel">

            <div class="formtitle">修改菜单</div>
            <form class="form-horizontal" id="form1" method="post" >
               
                  <div class="hr-line-dashed"></div>
                  <div class="row">
                        <div class="col-1">
                              名称：
                        </div>
                        <div class="col-2  ">
                                <input type="hidden" id="id" name="id" value="{$role['id']}">
                              <input type="text" class="form-control forminputsm" id="rolename" name="rolename" value="{$role['rolename']}" required>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
               
                  <div class="row">
                        <div class="col-1">
                              简介：
                        </div>
                        <div class="col-2  ">
                            <textarea name="info" style="width:400px;height:200px;">{$role['info']}</textarea>
                        </div>
                        <div class="col">
                              <div class="myformrow_hint"></div>
                        </div>
                  </div>
                  <div class="hr-line-dashed"></div>
                  
            <table data-toggle="table">
                        <thead>
                            <tr>
                                <th data-width="40px;">序号</th>
                                <th>菜单</th>
                                <th>功能</th>
                              
                            </tr>
                        </thead>
                        <tbody>
                            {foreach name="menulist" item="vo" key="key" offset="0" length='20'}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>
                                      <input type="checkbox" name="menulist[]" value="{$vo.id}"  {if $vo['ischeck']=='true'} checked="checked" {/if}  >
                                    {$vo.title}</td>
                                <td>
                                      
      
                                          {if !empty($vo['child'])}
                                          {foreach name="$vo['child']" item="v"}
                                          <span class="rolemenu">
                                              <input type="checkbox" name="menulist[]" value="{$v.id}"    {if $v['ischeck']=='true'} checked="checked" {/if} > {$v.title}
                                          </div>
                                          {/foreach}
                                          {/if}
      
                                 
                              
                              </td>
                            
            
                            </tr>
                            {/foreach}
                        </tbody>
                    </table>
            
      

                    
  
                  <div class="row">
                        <div class="col-1">

                        </div>
                        <div class="col-2 center">
                              <button class="btn btn-outline-primary  " type="submit">保存修改</button>
                        </div>
                        <div class="col">

                        </div>
                  </div>
            </form>

            


      </div>


      </div>


      <script type="text/javascript">

            $(function () {
                  formsubmit('form1','edit');
            });
      </script>


</body>


</html>